package com.itheima.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.core.domain.R;
import com.itheima.server.domain.Business;
import com.itheima.server.dto.BusinessPageQueryDto;

import java.util.List;

public interface IBusinessService extends IService<Business> {
    List<Business> selectBusinessList(BusinessPageQueryDto businessPageQueryDto);

    List<Business> selectPoolList(BusinessPageQueryDto businessPageQueryDto);

    R addBussiness(Business business);

    R batchGain(List<Integer> ids, Long userId);

    R batchAssignment(List<Integer> ids, Long userId);

    R back(Integer businessId, String reason);
}
